package practice05;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice05
 * @ClassName: Test
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/10 10:17
 * @Copyright 大牛版板所有
 */
public class Test {
    public static void main(String[] args) {
        Rectangle s = new Rectangle(10,5);
        s.area();

        s = new Cuboid(5,8,5);
        s.area();
        Cuboid v = (Cuboid)s;
        v.volume();
    }
}
